home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 February: Tool Chest / Dev.CD Feb 99 TC.toast / Tool Chest / Interapplication Communication / ScriptableStuffItEngine / Project / ScriptableStuffItEngine.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-02  |  2.0 KB  |  63 lines  |  [TEXT/CWIE]

  1. /*
  2.     You may incorporate this Apple sample source code into your program(s) without
  3.     restriction. This Apple sample source code has been provided "AS IS" and the
  4.     responsibility for its operation is yours. You are not permitted to redistribute
  5.     this Apple sample source code as "Apple sample source code" after having made
  6.     changes. If you're going to re-distribute the source, we require that you make
  7.     it clear in the source that the code was descended from Apple sample source
  8.     code, but that you've made changes.
  9. */
  10.  
  11. #pragma once
  12.  
  13. #ifndef __APPLEEVENTS__
  14. #    include <AppleEvents.h>
  15. #endif
  16.  
  17. enum
  18. {
  19.     kEventClass_ScriptableStuffIt            = 'SStu',
  20.     kEventClass_MiscFileHandling            = 'MiFH'
  21. };
  22.  
  23. enum
  24. {
  25.     kEventID_PrepareFilenameForUnix            = 'pffu',
  26.     kEventID_Search                            = 'find',
  27.     kEventID_Delete                            = 'dele',
  28.  
  29.     kEventID_Stuff                            = 'stuf',
  30.     kEventID_CountSegments                    = 'cseg',
  31.     kEventID_MakeSegments                    = 'mseg',
  32.     kEventID_EncodeIntoBinHex                = 'binx',
  33.     kEventID_MakeArchiveSelfExtracting        = '2sea'
  34. };
  35.  
  36. enum
  37. {
  38.     keySearchTarget                            = 'inin',
  39.     keyNameBeginsWith                        = 'namb',
  40.     keyFileTypeIsNot                        = 'flt!',
  41.     keyFileTypeIs                            = 'ftis',
  42.     keyIncludeContainers                    = 'inco',
  43.  
  44.     keyConvertFileName                        = 'cnvf',
  45.  
  46.     keySegsAreSelfExtracting                = 'segx',
  47.     keySegmentSize                            = 'segs',
  48.     keyTargetAlias                            = 'into',
  49.     keyDeleteOriginals                        = 'delo',
  50.     keyNameTemplate                            = 'namt',
  51.     keyKeepSource                            = 'keep',
  52.     keyDestination                            = 'dest'
  53. };
  54.  
  55. extern Boolean gQuitting;
  56.  
  57. pascal OSErr ScriptableStuffItAppleEventHandler        (const AppleEvent *, AppleEvent *reply, UInt32 handlerRefcon);
  58. pascal OSErr Stuff                                    (const AppleEvent *, AppleEvent *reply, long magicCookie);
  59. pascal OSErr GetOptionalBoolean                        (const AppleEvent *, Boolean *, AEKeyword);
  60. pascal OSErr MakeSegments                            (const AppleEvent *, AppleEvent *reply, long magicCookie);
  61. pascal OSErr FindFiles                                (const AppleEvent *, AppleEvent *reply);
  62. pascal OSErr GetOptionalTextParameter                (const AppleEvent *, AEKeyword, UInt8 **);
  63.